<%= polaris_button_to("Delete", "/products",
  method: :delete,
  destructive: true,
  data: {
    confirm: "Are you sure?",
  }
) %>

<br>

<%= polaris_button_to("/products",
  method: :delete,
  data: {
    confirm: "Are you sure?",
  }
) do |button| %>
  <% button.with_icon(name: "DeleteIcon") %>
<% end %>
